package sicau.car.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import sicau.car.entity.Application;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ITcz
 * @since 2020-07-28
 */
public interface ApplicationService extends IService<Application> {

    int order(Application applicationInform);

    IPage<Application> showPendingOrder(int page, int pageSize, int campus);

    void handleApplication(int applicationId);

    IPage<Application> showOrderHistory(int page, int pageSize, int campus);

    Application selectByLicensePlate(String licensePlate, int campus);

    boolean addOrder(Application application);

    boolean agreeOrder(int applicationId);

    boolean refuseOrder(Application application);

    Application selectById(Integer id);
}
